
package com.easy.component.network.callback;


import com.easy.component.network.exception.ApiException;
import com.easy.component.network.utils.ClassTypeReflect;

import java.lang.reflect.Type;

/**
 * 网络请求回调
 *
 * @param <T>
 */
public abstract class CallBack<T> {
    public Type mType;
    public CallBack() {
        mType = ClassTypeReflect.getModelClazz(getClass());
    }
    public abstract void onSuccess(T t);

    public abstract void onLoading(int progress);

    public abstract void onError(ApiException e);

    public abstract void onError();

    public abstract void onLoinError();
}
